/**
 * 
 */
package com.omega.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.omega.dao.SupplierDao;
import com.omega.entity.Supplier;

/**
 * @author vpan14
 *
 */
@Repository
public class SupplierDaoImpl extends GenericDaoImpl<Supplier> implements SupplierDao  {

	/**
	 * 
	 */
	public SupplierDaoImpl() {
		  
		        super();

		        setClazz(Supplier.class);
		    
	}

	/* (non-Javadoc)
	 * @see com.omega.dao.SupplierDao#addSupplier(com.omega.entity.PortalSupplier)
	 */
	@Override
	public void addSupplier(Supplier supplier) {
		save(supplier);
	}

	@Override
	public List<Supplier> loadAllSuppliers() {
		return loadAll();
	}

	@Override
	public Supplier loadById(long supplierId) {
		return loadByid(supplierId);
	}

	@Override
	public void updateSupplier(Supplier supplier) {
		update(supplier);
	}
	

}
